<?php /* Smarty version 2.3.0, created on 2011-11-02 09:11:21
         compiled from Default/edit_answer_type_choose.tpl */ ?>
<table align="center" bgcolor="#F3F3F3" style="BORDER-RIGHT:#999 1px solid; border-bottom:#999 1px solid; border-left:#999 1px solid; 
        border-top:#999 1px solid;" width="953" border="0" cellpadding="0" cellspacing="0">
  <!--DWLayoutTable-->
  <tr>
    <td height="19" colspan="2" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
      <!--DWLayoutTable-->
      <tr>
        <td width="20" height="19" valign="top" bgcolor="#333333" style="border-bottom:#999999 2px solid;"><!--DWLayoutEmptyCell-->&nbsp;</td>
        <td width="644" valign="middle" bgcolor="#333333" style="border-bottom:#999999 2px solid;" class="style2">Agregar
            Respuesta</td>
        <td width="268" valign="middle" bgcolor="#333333" style="border-bottom:#999999 2px solid;" class="style2" align="right"><a href="<?php echo $this->_tpl_vars['conf']['html']; ?>
/index.php" class="blanco">[Pagina Principal]</a></td>
        <td width="19" valign="top" bgcolor="#333333" style="border-bottom:#999999 2px solid;"><!--DWLayoutEmptyCell-->&nbsp;</td>
      </tr>
    </table></td>
    </tr>
  <tr>
    <td width="15" height="86" valign="top" ><!--DWLayoutEmptyCell-->&nbsp;</td>
    <td width="936" valign="top">
	<table  width="100%" border="0" cellpadding="0" cellspacing="0">
   	 <form method="POST" action="<?php echo $this->_tpl_vars['conf']['html']; ?>
/edit_answer_type_choose.php?sid=<?php echo $this->_tpl_vars['data']['sid']; ?>
&qid=<?php echo $this->_tpl_vars['data']['qid']; ?>
&aid=<?php echo $this->_tpl_vars['answer']['aid']; ?>
" name="qform">
      <tr>
        <td width="192" height="17">
		 <input type="hidden" name="mode" value="<?php echo $this->_tpl_vars['data']['mode_new_question']; ?>
">
       <input type="hidden" name="sid" value="<?php echo $this->_tpl_vars['data']['sid']; ?>
">
        <input type="hidden" name="qid" value="<?php echo $this->_tpl_vars['data']['qid']; ?>
">
        <input type="hidden" name="aid" value="<?php echo $this->_tpl_vars['answer']['aid']; ?>
">
		</td>
            <td width="286"></td>
            <td width="458"></td>
          </tr>
      <tr>
        <td height="15" valign="top"><strong>Tipo de Respuesta Predeterminada </strong></td>
            <td></td>
        <td></td>
      </tr>
      
      <tr>
        <td height="29" colspan="2" valign="top"><select name="answer" size="1">
		  <?php if (isset($this->_sections["p"])) unset($this->_sections["p"]);
$this->_sections["p"]['name'] = "p";
$this->_sections["p"]['loop'] = is_array($this->_tpl_vars['answerx']['aid']) ? count($this->_tpl_vars['answerx']['aid']) : max(0, (int)$this->_tpl_vars['answerx']['aid']);
$this->_sections["p"]['show'] = true;
$this->_sections["p"]['max'] = $this->_sections["p"]['loop'];
$this->_sections["p"]['step'] = 1;
$this->_sections["p"]['start'] = $this->_sections["p"]['step'] > 0 ? 0 : $this->_sections["p"]['loop']-1;
if ($this->_sections["p"]['show']) {
    $this->_sections["p"]['total'] = $this->_sections["p"]['loop'];
    if ($this->_sections["p"]['total'] == 0)
        $this->_sections["p"]['show'] = false;
} else
    $this->_sections["p"]['total'] = 0;
if ($this->_sections["p"]['show']):

            for ($this->_sections["p"]['index'] = $this->_sections["p"]['start'], $this->_sections["p"]['iteration'] = 1;
                 $this->_sections["p"]['iteration'] <= $this->_sections["p"]['total'];
                 $this->_sections["p"]['index'] += $this->_sections["p"]['step'], $this->_sections["p"]['iteration']++):
$this->_sections["p"]['rownum'] = $this->_sections["p"]['iteration'];
$this->_sections["p"]['index_prev'] = $this->_sections["p"]['index'] - $this->_sections["p"]['step'];
$this->_sections["p"]['index_next'] = $this->_sections["p"]['index'] + $this->_sections["p"]['step'];
$this->_sections["p"]['first']      = ($this->_sections["p"]['iteration'] == 1);
$this->_sections["p"]['last']       = ($this->_sections["p"]['iteration'] == $this->_sections["p"]['total']);
?>
		  
			<option value="<?php echo $this->_tpl_vars['answerx']['aid'][$this->_sections['p']['index']]; ?>
" <?php echo $this->_tpl_vars['answerx']['selected'][$this->_sections['p']['index']]; ?>
><?php echo $this->_tpl_vars['answerx']['name'][$this->_sections['p']['index']]; ?>
</option>
		  
		  <?php endfor; endif; ?>
          </select>
          <input type="submit" name="answer_type_choose" value="Escoger Respuesta">
		  <a href="#show_answers" onClick="window.open('display_answers.php?sid=0','mywindow','toolbar=no,location=no,directories=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=640,height=480,left=30,top=30');" class="negro">[Valores] </a>
          </td>
            <td>&nbsp;</td>
          </tr>
      <tr>
        <td height="25">&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
          </tr>
</form>
    </table>
	
	
	</td>
  </tr>
  
  <tr>
    <td height="26" colspan="2" valign="top"><table style="border-top:#999 1px solid;"  width="100%" border="0" cellpadding="0" cellspacing="0">
      <!--DWLayoutTable-->
      <tr>
       <td height="26" align="center" valign="middle" bgcolor="#EBEBEB" style="border-top:#D7D7D7 2px solid; border-bottom:#D7D7D7 2px solid;">
	   <strong> 
	   <a href="<?php echo $this->_tpl_vars['conf']['html']; ?>
/question_edit_survey.php?sid=<?php echo $this->_tpl_vars['data']['sid']; ?>
&mode=questions" class="negro">[Agregar Pregunta]</a>
	   </strong>
	   </td>
      </tr>
    </table></td>
    </tr>

</table>